package com.learn.english.service;

import com.learn.english.model.entity.Course;
import com.learn.english.model.ro.CourseRo;
import jakarta.transaction.Transactional;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author TISNIW
 * @version 1.0
 * @desc
 */
public interface ICourseService {

    /**
     * 获取课程总数
     */
    Long getCourseCount();
    
    List<CourseRo> page(Integer pageNum, Integer pageSize, String name);

    Course getById(Long id);
    boolean saveWithCourseUrl(Course course);

    boolean exists(Long id);

    boolean updateById(Course course);

    boolean removeById(Long id);

    Long getPage(Integer pageSize);

    boolean saveById(Course course);
}
